﻿using System;

namespace CSharpPro._1028;

class Program
{
    static void Main(string[] args)
    {
        IUserService userService = new UserService();
        User user = new User(userService);
        user.Show();

        // 演示foreach循环迭代用户（可选）
        Console.WriteLine("\n当前注册用户列表：");
        foreach (var u in userService.GetUserList())
        {
            Console.WriteLine($"用户名：{u.Username}");
        }
    }
}